﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
namespace Data
{
    public class ChiTietPhieuNhapRepository
    {
        public static void Insert(ChiTietPhieuNhapDTO ct)
        {
            NhaSachEntities context = new NhaSachEntities();
            ChiTietPhieuNhap ctpn = new ChiTietPhieuNhap();
            ctpn.PhieuNhap.MaPhieuNhap = ct.MaPhieuNhap;
            ctpn.MaChiTiet = ct.MaChiTietPhieuNhap;
            ctpn.Sach = new Sach() { MaSach = ct.MaSach };
            
        }
    }
}
